package com.ffmpeg.util.infra.constant;

/**
 * @author :wm
 * @description : 当目标文件存在时删除
 */
public enum DealWhenExistEnum {
    /**
     * 删除源文件
     */
    DELETE("delete", "删除源文件"),

    /**
     * 抛出错误，终止运行
     */
    THROW_ERROR("throw", "抛出错误"),

    /**
     * 生成前缀
     */
    GENERATING_PREFIX("prefix", "生成前缀"),
    ;

    private String key;
    private String value;

    DealWhenExistEnum(String key, String value) {
        this.key = key;
        this.value = value;
    }

    public String getKey() {
        return key;
    }

    public DealWhenExistEnum setKey(String key) {
        this.key = key;
        return this;
    }

    public String getValue() {
        return value;
    }

    public DealWhenExistEnum setValue(String value) {
        this.value = value;
        return this;
    }
}
